fix FileIO openTempFile on Windows
authorJoey Hess <joeyh@joeyh.name>
Thu, 30 Jan 2025 18:23:00 +0000 (14:23 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 30 Jan 2025 18:31:01 +0000 (14:31 -0400)
commitc1e90767daeff7557e047ea4229d83c4e78f9f12
tree13a312a62e222ec28fe6e0fc57ae26dd2c11dfa4
parentaaf4dd3b9cc71752624dd81352c242eeabe912c2
fix FileIO openTempFile on Windows

When an UNC-style path is passed into openTempFile, the returned file
starts with that same style of path. Which can cause problems, eg piping
that filename to git failed. So, convert the output filename to be
relative to the input temp directory.
Utility/FileIO.hs